﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using l1cs.server.model.Instance;
using l1cs.server.serverpackets;

namespace l1cs.server.clientpackets
{
    public class C_SkillBuy : ClientBasePacket
    {
        private const String _C_SKILL_BUY = "[C] C_SkillBuy";
        private static Logger _log = Logger.getLogger( typeof( C_SkillBuy ).FullName );

        public C_SkillBuy( byte[] abyte0, ClientThread clientthread )
            : base( abyte0 )
        {

            int i = readD();

            L1PcInstance pc = clientthread.getActiveChar();
            if ( pc.isGhost() )
            {
                return;
            }
            pc.sendPackets( new S_SkillBuy( i, pc ) );
            /*
             * int type = player.get_type(); int lvl = player.get_level();
             * 
             * switch(type) { case 0: // 君主 if(lvl >= 10) { player.sendPackets(new
             * S_SkillBuy(i, player)); } break;
             * 
             * case 1: // ナイト if(lvl >= 50) { player.sendPackets(new S_SkillBuy(i,
             * player)); } break;
             * 
             * case 2: // エルフ if(lvl >= 8) { player.sendPackets(new S_SkillBuy(i,
             * player)); } break;
             * 
             * case 3: // WIZ if(lvl >= 4) { player.sendPackets(new S_SkillBuy(i,
             * player)); } break;
             * 
             * case 4: //DE if(lvl >= 12) { player.sendPackets(new S_SkillBuy(i,
             * player)); } break;
             * 
             * default: break; }
             */
        }

        override
        public String getType()
        {
            return _C_SKILL_BUY;
        }
    }
}